package com.rytx.system.service.impl;

import com.rytx.system.domain.ysp.ArtDiscountCycle;
import com.rytx.system.mapper.ArtDiscountCycleMapper;
import com.rytx.system.mapper.ArtFavoriteMapper;
import com.rytx.system.service.ArtDiscountCycleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArtDiscountCycleImpl implements ArtDiscountCycleService {
    @Autowired
    private ArtDiscountCycleMapper artDiscountCycleMapper;
    @Override
    public List<ArtDiscountCycle> getDiscountCycle() {

        return artDiscountCycleMapper.getDiscountCycle();
    }

    @Override
    public void addDiscountCycle(ArtDiscountCycle artDiscountCycle) {
        artDiscountCycleMapper.addDiscountCycle(artDiscountCycle);
    }

    @Override
    public void editDiscountCycle(ArtDiscountCycle artDiscountCycle) {
        artDiscountCycleMapper.editDiscountCycle(artDiscountCycle);
    }

    @Override
    public void deleteDiscountCycle(Long id) {
        artDiscountCycleMapper.deleteDiscountCycle(id);
    }
}
